package cn.stylefeng.guns.modular.order.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import cn.stylefeng.guns.modular.order.entity.OrderPut;
import cn.stylefeng.guns.modular.order.model.params.OrderPutParam;
import cn.stylefeng.guns.modular.order.model.params.OutOrderParam;
import cn.stylefeng.guns.modular.order.model.result.OrderPutResult;

/**
 * <p>
 * 入库订单表 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2019-07-02
 */
public interface OrderPutMapper extends BaseMapper<OrderPut> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2019-07-02
     */
    List<OrderPutResult> customList(@Param("paramCondition") OrderPutParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2019-07-02
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") OrderPutParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2019-07-02
     */
    Page<OrderPutResult> customPageList(@Param("page") Page page, @Param("paramCondition") OrderPutParam paramCondition
    		, @Param("condition") String condition, @Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2019-07-02
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") OrderPutParam paramCondition);

	OrderPut findByThelastone();

	String checkCustomerOrder(@Param("putCustomerNumber")String putCustomerNumber);

	OrderPutResult findBySpec(@Param("paramCondition")OrderPutParam param,@Param("operateId")Long operateId);

	Page<OrderPutResult> querylistPageBySpec(@Param("page") Page page, @Param("paramCondition") OrderPutParam paramCondition
			, @Param("condition") String condition, @Param("operateId") Long operateId);

	boolean saveBatchList(@Param("list")List<OrderPutParam> list);

	OrderPutResult getPrintOrderPut(@Param("paramCondition")OrderPutParam orderPutParam);

	List<OrderPutResult> findListBySpec(@Param("paramCondition")OrderPutParam orderPutParam,@Param("operateId")Long operateId);

}
